package org.logtime.blog.controller.admin;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @version: 1.0
 * @Author: itmins
 * @Email: itmins@gmail.com
 */
@Controller
@RequestMapping("/")
public class AdminController {

	@RequestMapping(value = "/")
	public String index(HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		return "main";
	}

	@RequestMapping(value = "/login/")
	public String login(HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		return "login";
	}

	@RequestMapping(value = "/setup/")
	public String setup(HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		return "setup";
	}

	@RequestMapping(value = "/articles/single/")
	public String articleSingle(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		return "articles-single";
	}

	@RequestMapping(value = "/articles/all/")
	public String articleAll(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		return "articles-all";
	}
}